home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 March / Gamestar_71_2005-03_dvd.iso / Dema / willofsteel_demo.exe / {app} / Data / gui / menu.gui < prev    next >
Text File  |  2004-12-18  |  6KB  |  219 lines

  1.  
  2. -- --------------------------------------------------- COMPONENT ID
  3. ID_BUTTON            = 0 
  4. ID_RADIO_BUTTON        = 1 
  5. ID_CHK_BOX            = 2  
  6. ID_EDIT_BOX            = 3 
  7. ID_LIST                = 4 
  8. ID_TEXT_BOX            = 5 
  9. ID_PICTURE_BOX        = 6 
  10. ID_FRAME            = 7 
  11. ID_SCROLL            = 8 
  12. ID_PROGRESSBAR        = 9 
  13. ID_SLIDEMENU        = 10
  14. ID_COMPASS            = 11
  15. ID_MINIMAP            = 12
  16. ID_SELECTIONBOX        = 13
  17. ID_TABLECC            = 14
  18. ID_POOLFRAME        = 15
  19. ID_SOLDIERPOOL_ELEM = 16
  20. ID_VEHICLEPOOL_ELEM = 17
  21.  
  22.  
  23. -- --------------------------------------------------- PGUITextBox type
  24.     PGUI_SINGLELINE_TEXT    = 0
  25.     PGUI_MULTILINE_TEXT        = 1
  26.     PGUI_FILENAME            = 2
  27.  
  28.     PGUI_SIGNED_INTEGER        = 3
  29.     PGUI_UNSIGNED_INTEGER    = 4
  30.     PGUI_FLOAT                = 5
  31.  
  32.  
  33. -- --------------------------------------------------- MESAGE ID
  34.  
  35. PGUI_1STBUTTON_DOWN            =  0 
  36. PGUI_1STBUTTON_UP            =  1 
  37. PGUI_1STBUTTON_CLCK            =  2
  38. PGUI_1STBUTTON_DBLCLCK      =  3
  39. PGUI_1STBUTTON_DRAG            =  4
  40. PGUI_1STBUTTON_DROP            =  5
  41. PGUI_2NDBUTTON_DOWN            =  6
  42. PGUI_2NDBUTTON_UP            =  7
  43. PGUI_2NDBUTTON_CLCK            =  8
  44. PGUI_2NDBUTTON_DBLCLCK        =  9
  45. PGUI_2NDBUTTON_DRAG            = 10
  46. PGUI_2NDBUTTON_DROP            = 11
  47. PGUI_POINTER_MOVE            = 12
  48. PGUI_POINTER_HOVER            = 13
  49. PGUI_POINTER_LEAVE            = 14
  50. PGUI_POINTER_DRAG_HOVER        = 15
  51. PGUI_POINTER_DRAG_LEAVE        = 16
  52. PGUI_CHAR_PRESSED            = 17
  53. PGUI_KEY_PRESSED            = 18
  54. PGUI_VALUE_CHANGED            = 19
  55. PGUI_RELEASE_FOCUS            = 20
  56. PGUI_INITIALISATION            = 21
  57. PGUI_ANIMATION_FINISHED        = 22
  58.  
  59.  
  60.  
  61.  
  62. -- -------------------------------------------- PGUISelectionBox child types
  63.  
  64.     PGUI_SB_GROUPED_FRAME            = 0
  65.     PGUI_SB_UNGROUPED_FRAME            = 1
  66.     PGUI_SB_DETAILED_FRAME            = 2    
  67.     PGUI_SB_HEALTH_TEXT                = 3
  68.     PGUI_SB_HEALTH_BAR                = 4
  69.     PGUI_SB_ARMOUR_TEXT                = 5
  70.     PGUI_SB_ARMOUR_BAR                = 6    
  71.     PGUI_SB_DEFENCE_TEXT            = 7
  72.     PGUI_SB_DEFENCE_BAR                = 8
  73.     PGUI_SB_MORALE_TEXT                = 9
  74.     PGUI_SB_MORALE_BAR                = 10
  75.     PGUI_SB_CQB_TEXT                = 11
  76.     PGUI_SB_CQB_BAR                    = 12
  77.     PGUI_SB_ACURACY_SOLDIER_TEXT    = 13
  78.     PGUI_SB_ACURACY_SOLDIER_BAR        = 14
  79.     PGUI_SB_VETERANCY_TEXT            = 15
  80.     PGUI_SB_VETERANCY_BAR            = 16
  81.     PGUI_SB_WEAPON_1ST                = 17
  82.     PGUI_SB_WEAPON_2ND                = 18
  83.     PGUI_SB_FIREPOWER_1ST            = 19
  84.     PGUI_SB_FIREPOWER_2ND            = 20
  85.     PGUI_SB_ACCURACY_1ST            = 21
  86.     PGUI_SB_ACCURACY_2ND            = 22
  87.     PGUI_SB_AMMORECYCLE_1ST_TEXT    = 23
  88.     PGUI_SB_AMMORECYCLE_1ST_BAR        = 24
  89.     PGUI_SB_AMMORECYCLE_2ND_TEXT    = 25
  90.     PGUI_SB_AMMORECYCLE_2ND_BAR        = 26
  91.     PGUI_SB_MAXSPEED_TEXT            = 27
  92.     PGUI_SB_MAXSPEED_BAR            = 28
  93.     PGUI_SB_SMALL_PCT                = 29
  94.     PGUI_SB_BIG_PCT                    = 30
  95.  
  96.  
  97.  
  98. -- ---------------------------------------------------
  99.  
  100.  
  101. CreateGUI("Menu");
  102.  
  103.  
  104.  
  105. id=GUIADDCONTROL {
  106.     Parent     = 0,
  107.     Name       = "Frame",
  108.     ControlType= ID_FRAME,
  109.     BoundRect  = {0,0,1024,768},
  110. --    Texture    = "GUI/MenuFrame.dds",
  111.     Rec1STTexture = {0,0,1024,768},
  112.  
  113.    MESSAGE_MAP = {
  114.         {PGUI_INITIALISATION , "INITMAINMENU"},
  115.    },
  116. };
  117.  
  118. GUIADDCONTROL {
  119.     Parent     = id,
  120.     Name       = "Frame",
  121.     ControlType= ID_FRAME,
  122.     BoundRect  = {0,0,1024,103},
  123.     Texture    = "GUI/top_border.dds",
  124.     Rec1STTexture = {0,0,1024,103},
  125. };
  126.  
  127. GUIADDCONTROL {
  128.     Parent     = id,
  129.     Name       = "Frame",
  130.     ControlType= ID_FRAME,
  131.     BoundRect  = {0,768-128,1024,768},
  132.     Texture    = "GUI/bottom_border.dds",
  133.     Rec1STTexture = {0,0,1024,128},
  134. };
  135.  
  136. GUIADDCONTROL {
  137.     Parent     = id,
  138.     Name       = "PlayDemo",
  139.     ControlType= ID_BUTTON,
  140.     BoundRect  = {33,65,141,94},
  141.     Texture    = "GUI/top_border.dds",
  142.     Title      = "Button 2",
  143.     Rec1STTexture = {33,65,141,94},
  144.     Rec2NDTexture = {33,103,142,132},
  145.     Rec3RDTexture = {33,65,141,94},
  146.     Rec4THTexture = {33,65,141,94},
  147.     MESSAGE_MAP = {
  148.         {PGUI_1STBUTTON_CLCK , "PLAYDEMO", 4, 31},
  149.     },
  150. };
  151.  
  152. GUIADDCONTROL {
  153.     Parent     = id,
  154.     Name       = "Options",
  155.     ControlType= ID_BUTTON,
  156.     BoundRect  = {289,65,398,94},
  157.     Texture    = "GUI/top_border.dds",
  158.     Title      = "Button 2",
  159.     Rec1STTexture = {289,65,398,94},
  160.     Rec2NDTexture = {289,103,397,132},
  161.     Rec3RDTexture = {289,65,398,94},
  162.     Rec4THTexture = {289,65,398,94},
  163.     MESSAGE_MAP = {
  164.         {PGUI_1STBUTTON_CLCK , "OPTIONS", 4, 24},
  165.     },
  166. };
  167.  
  168. GUIADDCONTROL {
  169.     Parent     = id,
  170.     Name       = "Credits",
  171.     ControlType= ID_BUTTON,
  172.     BoundRect  = {417,65,525,94},
  173.     Texture    = "GUI/top_border.dds",
  174.     Title      = "Button 2",
  175.     Rec1STTexture = {417,65,525,94},
  176.     Rec2NDTexture = {417,103,525,132},
  177.     Rec3RDTexture = {417,65,525,94},
  178.     Rec4THTexture = {417,65,525,94},
  179.     MESSAGE_MAP = {
  180.         {PGUI_1STBUTTON_CLCK, "CREDITS", 4, 46},
  181.     },
  182. };
  183.  
  184. GUIADDCONTROL {
  185.     Parent     = id,
  186.     Name       = "Exit",
  187.     ControlType= ID_BUTTON,
  188.     BoundRect  = {545,65,653,94},
  189.     Texture    = "GUI/top_border.dds",
  190.     Title      = "Button 2",
  191.     Rec1STTexture = {545,65,653,94},
  192.     Rec2NDTexture = {545,103,654,132},
  193.     Rec3RDTexture = {545,65,653,94},
  194.     Rec4THTexture = {545,65,653,94},
  195.  
  196.     MESSAGE_MAP = {
  197.         {PGUI_1STBUTTON_CLCK , "QUITDEMO", 4, 18},
  198.     },
  199.     
  200. };
  201.  
  202. GUIADDCONTROL {
  203.    Parent      = id,
  204.    Name        = "MissionName",
  205.    ControlType = ID_TEXT_BOX,
  206.    Long1st     = PGUI_SINGLELINE_TEXT,
  207.    BoundRect   = {33,686,310,715},
  208.    --Texture    = "GUI/bottom_border.dds",
  209.    Rec1STTexture = {0,0,1024,128},
  210.    Res2NDTexture = {0,0,1024,128},
  211.    FontColor  = 4290494599,
  212.    FontHeight = 23,
  213.    FontWidth  = 0,
  214.    
  215.    MESSAGE_MAP = {
  216.         {PGUI_INITIALISATION , "INITPLAYERNAME2"},
  217.    },
  218. };
  219.